<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ page
	language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<jsp:include page="../defaults/tagHeadContent.jsp" />
<!-- <script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript"
	src="http://dev.jquery.com/view/trunk/plugins/validate/lib/jquery.delegate.js"></script>
<script type="text/javascript"
	src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>
<script type="text/javascript">
	jQuery.validator.setDefaults({
		debug : true,
		success : "valid"
	});;
</script>

<script>
	$(document).ready(function() {
		$("#newTaskForm").validate({
			rules : {
				"task.name" : "required"
			}
		});
	});
</script> -->
</head>
<body>

	<jsp:include page="../defaults/header.jsp" />
	<div id="wrapper">
		<div id="content">
			<jsp:include page="../defaults/sidebar.jsp" />
			<div id="newform">
				<form id="newTaskForm" action="<c:url value="/task/new"/>"
					method="POST">
					<fieldset>
						<legend>Criar nova tarefa</legend>
						<label for="name">Nome:</label> <input id="name" type="text"
							name="task.name" value="${task.name }" /> <br /> <label
							for="email">Descrição:</label> <input id="email" type="text"
							name="task.description" value="${task.description }" /> <br />
						Usuário responsável: <select id="login" name="user.login"
							style="width: 158px;">
							<option id="login" value="">Nenhum</option>
							<c:forEach items="${userList}" var="user">
								<option id="login" value="${user.login}">${user.login }</option>
							</c:forEach>
						</select><br /> <input type="submit" value="Enviar" />
					</fieldset>
				</form>
			</div>
		</div>
		<div style="clear: both;">&nbsp;</div>
	</div>

	<jsp:include page="../defaults/footer.jsp" />
</body>
</html>